package com.qf;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.qf.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author 千锋健哥
 */
@SpringBootApplication
public class SpitApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpitApplication.class, args);
    }

    /**
     * 初始化生成唯一ID的工具类
     * @return
     */
    @Bean
    public IdWorker idWorkerInstance() {
        return new IdWorker(1, 1);
    }
}
